
import { Base } from '../../../utils/base.js';
class HomeIndex extends Base {
  constructor() {
    super();
  }

  getArsuer(data, callback) {  //确认取号
    var param = {
      url: 'goods/take_number',
      type: "post",
      data: data,
      loading:"show",
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  getqmos(data, callback) {  //取号详情
    var param = {
      url:'goods/number',
      type: "post",
      data: data,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  linespeed(data, callback) {  //排队进度
    var param = {
      url:'goods/line_speed',
      type:"post",
      data: data,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }
  

  priceMode(data, callback){     //服务价格
  var param = {
    url:'goods/getprice',
    type: "post",
    loading:'hide',
    data: data,
    sCallback: function (data) {
      callback && callback(data);
    }
  };
  this.request(param);
  }

    //綁定手機號
    perfect(data, callback){
      var param = {
        url: 'user/perfect',
        type: "post",
        data: data,
        loading: 'hide',
        sCallback: function (data) {
          callback && callback(data);
        }
      };
      this.request(param);
    }
  

};
export { HomeIndex };